﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <?php include_once MvcReg::$_moduleName . '/views/layout/head.php'; ?>

</head>
<body>
<?php include_once MvcReg::$_moduleName . '/views/layout/header.php'; ?>
<?php include_once MvcReg::$_moduleName . '/views/layout/top-nav.php'; ?>
<div id="main">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-2">
                <?php include_once MvcReg::$_moduleName . '/views/layout/left_menu.php'; ?>
            </div>
            <div class="col-md-12">
                <div class="right-content">
                    <h3>
                        <?php echo $menu["breadcrumb_current"] ?>
                    </h3>
                    <br>
                    <form name="mainform" action="" method="get">
                        <?php echo $hidden_data ?>
                        <div class="table-responsive">
                            <div class="panel panel-default">
                                <div class="panel-body form-inline">
                                    <div class="form-group">
                                        <label>完成时间:</label>
                                        <div class="input-group">
                                            <span class="input-group-addon">
                                                <span class="glyphicon glyphicon-calendar">
                                                </span>
                                            </span>
                                            <input size="16" type="text" name="q_from_date" readonly=""
                                                   class=" form-control" id="datetimeStart"
                                                   value="<?php echo $q_from_date ?>">
                                            <span class="input-group-addon">
                                                至
                                            </span>
                                            <input size="16" type="text" name="q_to_date" readonly="" id="datetimeEnd"
                                                   class=" form-control" value="<?php echo $q_to_date ?>">
                                        </div>
                                    </div>
                                    <input type="hidden" name="id" value="<?php echo $rsp_list[0]['express_mobile'] ?>">
                                    <button type="submit" class="btn btn-primary"><span
                                                class="glyphicon glyphicon-search"></span>立即查询
                                    </button>
                                    <button type="button" class="btn btn-primary"><a style="color: white" href="?md=shop&cl=shop&at=ExportExcel&name=<?php echo $express_courier ?>&phone=<?php echo $express_mobile ?>">导出</a></button>

                                </div>
                            </div>
                            <table class="table table-hover">
                                <thead>
                                <tr class="info">
                                    <th>序</th>
                                    <th>运费金额</th>
                                    <th>配货单号</th>
                                    <th>完成时间</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php
                                $n = 0;
                                if($rsp_list){
                                foreach ($rsp_list as $k => $row) {
                                    $n++;
                                    $item = $n + ($page - 1) * $number_page;
                                    $id = $row["id"];
                                    ?>
                                    <tr data-id="<?php echo $id ?>" id="<?php echo $id ?>">
                                        <td><?php echo $item ?></td>
                                        <td><?php echo $row['express_fee'] ?></td>
                                        <td><?php echo $row['ph_no'] ?>
                                            <span class="showError" id=" <?php echo $row['error_remark'] ?>-<?php echo $row['shop_remark'] ?>"  data-toggle="modal"
                                               data-target="#show_remarks"
                                              >订单备注</span>

                                        </td>
                                        <td><?php echo $row['updatedt'] ?></td>
                                    </tr>
                                <?php }
                                }
                                ?>
                                </tbody>
                            </table>
                            <div class="page">
                                <div class="pagination pull-left">共<?php echo $total_count ?>笔记录</div>
                                <?php if (!empty($rsp_page_list)) echo $rsp_page_list; ?>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    $("#datetimeStart").datetimepicker({
        format: 'yyyy-mm-dd',
        minView:'month',
        language: 'zh-CN',
        autoclose:true,
        // startDate:new Date()  这个需要关掉 不然只能选择当前时间以后的时间
    }).on("click",function(){
        $("#datetimeStart").datetimepicker("setEndDate",$("#datetimeEnd").val())
    });

    $("#datetimeEnd").datetimepicker({
        format: 'yyyy-mm-dd',
        minView:'month',
        language: 'zh-CN',
        autoclose:true,
        // startDate:new Date()
    }).on("click",function(){
        $("#datetimeEnd").datetimepicker("setStartDate",$("#datetimeStart".val()))
    });
</script>

<?php include_once MvcReg::$_moduleName . '/views/layout/footer.php'; ?>
<?php include_once MvcReg::$_moduleName . '/views/dialog/express_order_setting.php'; ?>
<?php include_once MvcReg::$_moduleName . '/views/dialog/express_order_cancel.php'; ?>
<?php include_once MvcReg::$_moduleName . '/views/dialog/del_order.php'; ?>
<?php include_once MvcReg::$_moduleName . '/views/dialog/remarks.php'; ?>
<script>

</script>
</body>
</html>
